function d = to_degrees(r)
    d = r*180/pi;
end